package Compiler;

public interface LexicalAnalyzer {
    
	/** The next character. */
    String nextCharacter = "";

    /** The current position. */
    int currentPosition = 0;

        /**
         * This is the public method to be called when the Syntax Analyzer needs a new
         * token to be parsed.
         */
        public String getNextToken();

        /**
         * This is method gets the next character from the input and places it in
         * the nextCharacter class variable.
         *
         * @return the character
         */
        char getChar();

         /**
     * This method adds the current character the nextToken.
     */
        void addChar();

        /**
         * This is method gets the next character from the input and places it in
         * the nextCharacter class variable.
         *
         * @param c the current character
         * @return true, if is space; otherwise false
         */
        boolean isSpace(char c);

        /**
         * This method checks to see if the current, possible token is legal in the
         * defined grammar.
         *
         * @return true, if it is a legal token, otherwise false
         */
        boolean lookupToken(String nextToken);
}
